package com.yunao.service;


import com.yunao.commons.serachcore.core.bean.*;
import com.yunao.entity.Subject;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface SubjectService {

    List<Subject> findListByUser(Integer userId);

    Subject findOne(Integer subjectId);

    List<Subject> findFirstlevelBySubjectType(Integer userid, Integer parentid, Integer subjectType);

    List<Subject> findByParentIdAndSubjectType(Integer parentid, Integer subjectType);

    List<Subject> findByUserIdAndIshome(Integer userid, Integer ishome);

    List<Subject> findAlarmList(Integer userid);

    List<Subject> findByNeedAlarm(Integer needNum);

    List<Subject> findByUserIdNeedAlarm(Integer userid,Integer needNum);

    Subject findByName(String subjectName);

    Subject findByUserAndName(Integer userid,String subjectName);

    int findNumByOrgan(Integer organId);

    void save(Subject subject);

    void saveByUser(Subject subject);

    void delete(Integer subjectId);

    Articles searchSubject(Integer subjectId, Map map);

    Articles query(Map map);

    Groups group(Map map);

    Cubes cube(Map map);

    Articles distinct(Integer subjectId, Map map);

    Wordclouds searchWordclouds(Map map);

    Wordrelations wordrelation(Map map);

    Clusters cluster(Integer subjectId);

//    Subject addAlarm(AlarmForm alarmForm);
}
